package com.dlc.shop.bean.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * sku信息DTO
 *
 * @author FrozenWatermelon
 * @date 2020-10-28 15:27:24
 */
@Data
public class OrderStationProdDto implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @Schema(description = "属性id")
    private Long skuId;
    @Schema(description = "秒杀skuId")
    private Long seckillSkuId;
    @Schema(description = "购买数量")
    private Integer count;
    @Schema(description = "默认仓库id")
    private Long defaultStockPointId;
    /**
     * 枚举类 SpuMold
     */
    @Schema(description = "商品类别 0.实物商品 1. 虚拟商品 2.组合商品")
    private Integer spuMold;
    /**
     * 用于秒杀订单，独立库存数据是商品创建时保存，不读取最新的仓库配置
     */
    @Schema(description = "sku区域库存列表")
    private List<StockPointSkuDTO> stockPointList;
}
